<?php

class Main extends Controller {

    public function index(){

        
        $layout = new View("layout");
        $header = new View("header");
        $main = new View("main/index");
        $footer = new View("footer");
        
        $layout->header = $header->render(true);
        $layout->main = $main->render(true);
        $layout->footer = $footer->render(true);
        $layout->render();
        
        
    }

}